import { useNavigate } from "react-router-dom"

export const useTiaoZhuan = ()=>{
    const router = useNavigate();
    const Tz = (path:string|number)=>router(path as string)
    return {
        Tz,
    }
}


export function asss(path:string){
    const router=useNavigate();
    router('/homes')
}